package com.shanghaionstar.mro.util;

import android.app.Activity;

import com.onstar.cn.common.util.Constants;
import com.onstar.cn.common.util.DeviceUtil;
import com.shanghaionstar.OnstarApplication;
import com.shanghaionstar.utils.ApplicationUtil;


/**
 * Created by kai zhang on 2015/10/14.
 */
public class MrOConditionUtil {
    //此版本先不显示小O 2015.11.13
    private static boolean noMro;

    public static boolean isInSuitedCondition(Activity activity) {
        return !noMro && DeviceUtil.getLanguage().equals("zh")
                && ApplicationUtil.getInstance().isLogin()
                && Constants.OWNER.equalsIgnoreCase(ApplicationUtil.getInstance().getLoginRole());
    }
}
